import React, {Component} from 'react'
import ManagementFrame from '../common/managementFrame'
import ResourceInventory from './resourceInventory'
import DataManagement from './dataManagement'
import ProjectManagement from "./projectManagement";
import commonConfig from "../../static/js/commonConfig";

class DataCenterApp extends Component {
    state = {
        routeList: [
            {name: 'resourceInventory', component: ResourceInventory},
            {name: 'dataManagement', component: DataManagement},
            {name: 'projectManagement', component: ProjectManagement},
        ],
        navList: commonConfig.options.dataCenterNavList
    }

    render() {
        const {routeList, navList} = this.state;
        const managementFrameProps = {
            ...this.props,
            name: '资料中心',
            type: 'dataCenter',
            navList,
            routeList,
            defaultPath: 'resourceInventory'
        }
        return (
            <>
                <ManagementFrame {...managementFrameProps}/>
            </>
        )
    }
}

export default DataCenterApp;